package com.ruoyi.mall.common.mapper;

import com.ruoyi.mall.common.domain.DtsGoodsSpecification;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DtsGoodsSpecificationMapper {
    public List<DtsGoodsSpecification> selectGoodsSpecificationCountByGoodsId(int goodsId);

    public List<DtsGoodsSpecification> selectGoodsSpecificationByGoodsId(int goodsId);

    // 新增商品规格
    public int insertGoodsSpecification(List<DtsGoodsSpecification> dtsGoodsSpecification);

    // 循环逻辑删除
    public int deleteGoodsSpecificationList(List<Long> ids);

    // 根据id修改数据
    public int updateGoodsSpecificationById(DtsGoodsSpecification dtsGoodsSpecification);
}
